package com.xiweicheng.test.jpa;
// Generated 2018-7-14 9:20:43 by Hibernate Tools 5.0.6.Final

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Users generated by hbm2java
 */
@Entity
@Table(name = "users", catalog = "tms")
public class Users implements java.io.Serializable {

	private String username;
	private long version;
	private Date createDate;
	private String creator;
	private boolean enabled;
	private Date lastLoginDate;
	private Boolean locked;
	private long loginCount;
	private String loginRemoteAddress;
	private String mails;
	private String name;
	private String password;
	private Date resetPwdDate;
	private String resetPwdToken;
	private String status;
	private Set<ChannelGroup> channelGroupsForUpdater = new HashSet<ChannelGroup>(0);
	private Set<BlogAuthority> blogAuthoritiesForUpdater = new HashSet<BlogAuthority>(0);
	private Set<Log> logs = new HashSet<Log>(0);
	private Set<BlogStow> blogStowsForUpdater = new HashSet<BlogStow>(0);
	private Set<Chat> chatsForUpdater = new HashSet<Chat>(0);
	private Set<ChatLabel> chatLabels = new HashSet<ChatLabel>(0);
	private Set<Link> linksForUpdater = new HashSet<Link>(0);
	private Set<BlogStow> blogStowsForCreator = new HashSet<BlogStow>(0);
	private Set<Link> linksForCreator = new HashSet<Link>(0);
	private Set<Todo> todosForCreator = new HashSet<Todo>(0);
	private Set<ChannelGroup> channelGroupsForCreator = new HashSet<ChannelGroup>(0);
	private Set<Translate> translates = new HashSet<Translate>(0);
	private Set<Tag> tagsForCreator = new HashSet<Tag>(0);
	private Set<Schedule> schedulesForUpdater = new HashSet<Schedule>(0);
	private Set<ChatLabel> chatLabels_1 = new HashSet<ChatLabel>(0);
	private Set<ChatStow> chatStowsForCreator = new HashSet<ChatStow>(0);
	private Set<Channel> channelsForOwner = new HashSet<Channel>(0);
	private Set<ChatAt> chatAtsForUpdater = new HashSet<ChatAt>(0);
	private Set<ChatDirect> chatDirectsForChatTo = new HashSet<ChatDirect>(0);
	private Set<Space> spacesForUpdater = new HashSet<Space>(0);
	private Set<ChannelGroup> channelGroups = new HashSet<ChannelGroup>(0);
	private Set<ChatChannelFollower> chatChannelFollowers = new HashSet<ChatChannelFollower>(0);
	private Set<BlogAuthority> blogAuthoritiesForUser = new HashSet<BlogAuthority>(0);
	private Set<Tag> tagsForUpdater = new HashSet<Tag>(0);
	private Set<BlogHistory> blogHistoriesForBlogUpdater = new HashSet<BlogHistory>(0);
	private Set<Project> projects = new HashSet<Project>(0);
	private Set<BlogFollower> blogFollowersForUpdater = new HashSet<BlogFollower>(0);
	private Set<Project> projects_1 = new HashSet<Project>(0);
	private Set<Chat> chatsForCreator = new HashSet<Chat>(0);
	private Set<Blog> blogsForUpdater = new HashSet<Blog>(0);
	private Set<Comment> commentsForCreator = new HashSet<Comment>(0);
	private Set<Schedule> schedulesForCreator = new HashSet<Schedule>(0);
	private Set<Setting> settingsForCreator = new HashSet<Setting>(0);
	private Set<Blog> blogsForCreator = new HashSet<Blog>(0);
	private Set<SpaceAuthority> spaceAuthoritiesForCreator = new HashSet<SpaceAuthority>(0);
	private Set<ChatStow> chatStowsForStowUser = new HashSet<ChatStow>(0);
	private Set<Channel> channels = new HashSet<Channel>(0);
	private Set<Channel> channels_1 = new HashSet<Channel>(0);
	private Set<Todo> todosForUpdater = new HashSet<Todo>(0);
	private Set<ChatDirect> chatDirectsForCreator = new HashSet<ChatDirect>(0);
	private Set<ChatStow> chatStowsForUpdater = new HashSet<ChatStow>(0);
	private Set<SpaceAuthority> spaceAuthoritiesForUpdater = new HashSet<SpaceAuthority>(0);
	private Set<ChatAt> chatAtsForCreator = new HashSet<ChatAt>(0);
	private Set<ChatReply> chatRepliesForCreator = new HashSet<ChatReply>(0);
	private Set<Setting> settingsForUpdater = new HashSet<Setting>(0);
	private Set<BlogHistory> blogHistoriesForUpdater = new HashSet<BlogHistory>(0);
	private Set<Space> spacesForCreator = new HashSet<Space>(0);
	private Set<Authorities> authoritieses = new HashSet<Authorities>(0);
	private Set<BlogHistory> blogHistoriesForCreator = new HashSet<BlogHistory>(0);
	private Set<Channel> channelsForCreator = new HashSet<Channel>(0);
	private Set<ChatPin> chatPins = new HashSet<ChatPin>(0);
	private Set<BlogAuthority> blogAuthoritiesForCreator = new HashSet<BlogAuthority>(0);
	private Set<ChatReply> chatRepliesForUpdater = new HashSet<ChatReply>(0);
	private Set<Comment> commentsForUpdater = new HashSet<Comment>(0);
	private Set<ChatAt> chatAtsForAtUser = new HashSet<ChatAt>(0);
	private Set<Schedule> schedules = new HashSet<Schedule>(0);
	private Set<SpaceAuthority> spaceAuthoritiesForUser = new HashSet<SpaceAuthority>(0);
	private Set<ChatChannel> chatChannelsForCreator = new HashSet<ChatChannel>(0);
	private Set<Chat> chats = new HashSet<Chat>(0);
	private Set<BlogFollower> blogFollowersForCreator = new HashSet<BlogFollower>(0);
	private Set<ChatDirect> chatDirectsForUpdater = new HashSet<ChatDirect>(0);
	private Set<Channel> channelsForUpdater = new HashSet<Channel>(0);
	private Set<ChatChannel> chatChannelsForUpdater = new HashSet<ChatChannel>(0);

	public Users() {
	}

	public Users(String username, boolean enabled, long loginCount, String password, String status) {
		this.username = username;
		this.enabled = enabled;
		this.loginCount = loginCount;
		this.password = password;
		this.status = status;
	}

	public Users(String username, Date createDate, String creator, boolean enabled, Date lastLoginDate, Boolean locked,
			long loginCount, String loginRemoteAddress, String mails, String name, String password, Date resetPwdDate,
			String resetPwdToken, String status, Set<ChannelGroup> channelGroupsForUpdater,
			Set<BlogAuthority> blogAuthoritiesForUpdater, Set<Log> logs, Set<BlogStow> blogStowsForUpdater,
			Set<Chat> chatsForUpdater, Set<ChatLabel> chatLabels, Set<Link> linksForUpdater,
			Set<BlogStow> blogStowsForCreator, Set<Link> linksForCreator, Set<Todo> todosForCreator,
			Set<ChannelGroup> channelGroupsForCreator, Set<Translate> translates, Set<Tag> tagsForCreator,
			Set<Schedule> schedulesForUpdater, Set<ChatLabel> chatLabels_1, Set<ChatStow> chatStowsForCreator,
			Set<Channel> channelsForOwner, Set<ChatAt> chatAtsForUpdater, Set<ChatDirect> chatDirectsForChatTo,
			Set<Space> spacesForUpdater, Set<ChannelGroup> channelGroups, Set<ChatChannelFollower> chatChannelFollowers,
			Set<BlogAuthority> blogAuthoritiesForUser, Set<Tag> tagsForUpdater,
			Set<BlogHistory> blogHistoriesForBlogUpdater, Set<Project> projects,
			Set<BlogFollower> blogFollowersForUpdater, Set<Project> projects_1, Set<Chat> chatsForCreator,
			Set<Blog> blogsForUpdater, Set<Comment> commentsForCreator, Set<Schedule> schedulesForCreator,
			Set<Setting> settingsForCreator, Set<Blog> blogsForCreator, Set<SpaceAuthority> spaceAuthoritiesForCreator,
			Set<ChatStow> chatStowsForStowUser, Set<Channel> channels, Set<Channel> channels_1,
			Set<Todo> todosForUpdater, Set<ChatDirect> chatDirectsForCreator, Set<ChatStow> chatStowsForUpdater,
			Set<SpaceAuthority> spaceAuthoritiesForUpdater, Set<ChatAt> chatAtsForCreator,
			Set<ChatReply> chatRepliesForCreator, Set<Setting> settingsForUpdater,
			Set<BlogHistory> blogHistoriesForUpdater, Set<Space> spacesForCreator, Set<Authorities> authoritieses,
			Set<BlogHistory> blogHistoriesForCreator, Set<Channel> channelsForCreator, Set<ChatPin> chatPins,
			Set<BlogAuthority> blogAuthoritiesForCreator, Set<ChatReply> chatRepliesForUpdater,
			Set<Comment> commentsForUpdater, Set<ChatAt> chatAtsForAtUser, Set<Schedule> schedules,
			Set<SpaceAuthority> spaceAuthoritiesForUser, Set<ChatChannel> chatChannelsForCreator, Set<Chat> chats,
			Set<BlogFollower> blogFollowersForCreator, Set<ChatDirect> chatDirectsForUpdater,
			Set<Channel> channelsForUpdater, Set<ChatChannel> chatChannelsForUpdater) {
		this.username = username;
		this.createDate = createDate;
		this.creator = creator;
		this.enabled = enabled;
		this.lastLoginDate = lastLoginDate;
		this.locked = locked;
		this.loginCount = loginCount;
		this.loginRemoteAddress = loginRemoteAddress;
		this.mails = mails;
		this.name = name;
		this.password = password;
		this.resetPwdDate = resetPwdDate;
		this.resetPwdToken = resetPwdToken;
		this.status = status;
		this.channelGroupsForUpdater = channelGroupsForUpdater;
		this.blogAuthoritiesForUpdater = blogAuthoritiesForUpdater;
		this.logs = logs;
		this.blogStowsForUpdater = blogStowsForUpdater;
		this.chatsForUpdater = chatsForUpdater;
		this.chatLabels = chatLabels;
		this.linksForUpdater = linksForUpdater;
		this.blogStowsForCreator = blogStowsForCreator;
		this.linksForCreator = linksForCreator;
		this.todosForCreator = todosForCreator;
		this.channelGroupsForCreator = channelGroupsForCreator;
		this.translates = translates;
		this.tagsForCreator = tagsForCreator;
		this.schedulesForUpdater = schedulesForUpdater;
		this.chatLabels_1 = chatLabels_1;
		this.chatStowsForCreator = chatStowsForCreator;
		this.channelsForOwner = channelsForOwner;
		this.chatAtsForUpdater = chatAtsForUpdater;
		this.chatDirectsForChatTo = chatDirectsForChatTo;
		this.spacesForUpdater = spacesForUpdater;
		this.channelGroups = channelGroups;
		this.chatChannelFollowers = chatChannelFollowers;
		this.blogAuthoritiesForUser = blogAuthoritiesForUser;
		this.tagsForUpdater = tagsForUpdater;
		this.blogHistoriesForBlogUpdater = blogHistoriesForBlogUpdater;
		this.projects = projects;
		this.blogFollowersForUpdater = blogFollowersForUpdater;
		this.projects_1 = projects_1;
		this.chatsForCreator = chatsForCreator;
		this.blogsForUpdater = blogsForUpdater;
		this.commentsForCreator = commentsForCreator;
		this.schedulesForCreator = schedulesForCreator;
		this.settingsForCreator = settingsForCreator;
		this.blogsForCreator = blogsForCreator;
		this.spaceAuthoritiesForCreator = spaceAuthoritiesForCreator;
		this.chatStowsForStowUser = chatStowsForStowUser;
		this.channels = channels;
		this.channels_1 = channels_1;
		this.todosForUpdater = todosForUpdater;
		this.chatDirectsForCreator = chatDirectsForCreator;
		this.chatStowsForUpdater = chatStowsForUpdater;
		this.spaceAuthoritiesForUpdater = spaceAuthoritiesForUpdater;
		this.chatAtsForCreator = chatAtsForCreator;
		this.chatRepliesForCreator = chatRepliesForCreator;
		this.settingsForUpdater = settingsForUpdater;
		this.blogHistoriesForUpdater = blogHistoriesForUpdater;
		this.spacesForCreator = spacesForCreator;
		this.authoritieses = authoritieses;
		this.blogHistoriesForCreator = blogHistoriesForCreator;
		this.channelsForCreator = channelsForCreator;
		this.chatPins = chatPins;
		this.blogAuthoritiesForCreator = blogAuthoritiesForCreator;
		this.chatRepliesForUpdater = chatRepliesForUpdater;
		this.commentsForUpdater = commentsForUpdater;
		this.chatAtsForAtUser = chatAtsForAtUser;
		this.schedules = schedules;
		this.spaceAuthoritiesForUser = spaceAuthoritiesForUser;
		this.chatChannelsForCreator = chatChannelsForCreator;
		this.chats = chats;
		this.blogFollowersForCreator = blogFollowersForCreator;
		this.chatDirectsForUpdater = chatDirectsForUpdater;
		this.channelsForUpdater = channelsForUpdater;
		this.chatChannelsForUpdater = chatChannelsForUpdater;
	}

	@Id

	@Column(name = "username", unique = true, nullable = false, length = 50)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Version
	@Column(name = "version", nullable = false)
	public long getVersion() {
		return this.version;
	}

	public void setVersion(long version) {
		this.version = version;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_date", length = 19)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "creator")
	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "enabled", nullable = false)
	public boolean isEnabled() {
		return this.enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "last_login_date", length = 19)
	public Date getLastLoginDate() {
		return this.lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}

	@Column(name = "locked")
	public Boolean getLocked() {
		return this.locked;
	}

	public void setLocked(Boolean locked) {
		this.locked = locked;
	}

	@Column(name = "login_count", nullable = false)
	public long getLoginCount() {
		return this.loginCount;
	}

	public void setLoginCount(long loginCount) {
		this.loginCount = loginCount;
	}

	@Column(name = "login_remote_address")
	public String getLoginRemoteAddress() {
		return this.loginRemoteAddress;
	}

	public void setLoginRemoteAddress(String loginRemoteAddress) {
		this.loginRemoteAddress = loginRemoteAddress;
	}

	@Column(name = "mails")
	public String getMails() {
		return this.mails;
	}

	public void setMails(String mails) {
		this.mails = mails;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "password", nullable = false)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "reset_pwd_date", length = 19)
	public Date getResetPwdDate() {
		return this.resetPwdDate;
	}

	public void setResetPwdDate(Date resetPwdDate) {
		this.resetPwdDate = resetPwdDate;
	}

	@Column(name = "reset_pwd_token")
	public String getResetPwdToken() {
		return this.resetPwdToken;
	}

	public void setResetPwdToken(String resetPwdToken) {
		this.resetPwdToken = resetPwdToken;
	}

	@Column(name = "status", nullable = false)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<ChannelGroup> getChannelGroupsForUpdater() {
		return this.channelGroupsForUpdater;
	}

	public void setChannelGroupsForUpdater(Set<ChannelGroup> channelGroupsForUpdater) {
		this.channelGroupsForUpdater = channelGroupsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<BlogAuthority> getBlogAuthoritiesForUpdater() {
		return this.blogAuthoritiesForUpdater;
	}

	public void setBlogAuthoritiesForUpdater(Set<BlogAuthority> blogAuthoritiesForUpdater) {
		this.blogAuthoritiesForUpdater = blogAuthoritiesForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "users")
	public Set<Log> getLogs() {
		return this.logs;
	}

	public void setLogs(Set<Log> logs) {
		this.logs = logs;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<BlogStow> getBlogStowsForUpdater() {
		return this.blogStowsForUpdater;
	}

	public void setBlogStowsForUpdater(Set<BlogStow> blogStowsForUpdater) {
		this.blogStowsForUpdater = blogStowsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<Chat> getChatsForUpdater() {
		return this.chatsForUpdater;
	}

	public void setChatsForUpdater(Set<Chat> chatsForUpdater) {
		this.chatsForUpdater = chatsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "users")
	public Set<ChatLabel> getChatLabels() {
		return this.chatLabels;
	}

	public void setChatLabels(Set<ChatLabel> chatLabels) {
		this.chatLabels = chatLabels;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<Link> getLinksForUpdater() {
		return this.linksForUpdater;
	}

	public void setLinksForUpdater(Set<Link> linksForUpdater) {
		this.linksForUpdater = linksForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<BlogStow> getBlogStowsForCreator() {
		return this.blogStowsForCreator;
	}

	public void setBlogStowsForCreator(Set<BlogStow> blogStowsForCreator) {
		this.blogStowsForCreator = blogStowsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<Link> getLinksForCreator() {
		return this.linksForCreator;
	}

	public void setLinksForCreator(Set<Link> linksForCreator) {
		this.linksForCreator = linksForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<Todo> getTodosForCreator() {
		return this.todosForCreator;
	}

	public void setTodosForCreator(Set<Todo> todosForCreator) {
		this.todosForCreator = todosForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<ChannelGroup> getChannelGroupsForCreator() {
		return this.channelGroupsForCreator;
	}

	public void setChannelGroupsForCreator(Set<ChannelGroup> channelGroupsForCreator) {
		this.channelGroupsForCreator = channelGroupsForCreator;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "watcher_translate", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "translate_id", nullable = false, updatable = false) })
	public Set<Translate> getTranslates() {
		return this.translates;
	}

	public void setTranslates(Set<Translate> translates) {
		this.translates = translates;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<Tag> getTagsForCreator() {
		return this.tagsForCreator;
	}

	public void setTagsForCreator(Set<Tag> tagsForCreator) {
		this.tagsForCreator = tagsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<Schedule> getSchedulesForUpdater() {
		return this.schedulesForUpdater;
	}

	public void setSchedulesForUpdater(Set<Schedule> schedulesForUpdater) {
		this.schedulesForUpdater = schedulesForUpdater;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "voter_chat_label", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "chat_label_id", nullable = false, updatable = false) })
	public Set<ChatLabel> getChatLabels_1() {
		return this.chatLabels_1;
	}

	public void setChatLabels_1(Set<ChatLabel> chatLabels_1) {
		this.chatLabels_1 = chatLabels_1;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<ChatStow> getChatStowsForCreator() {
		return this.chatStowsForCreator;
	}

	public void setChatStowsForCreator(Set<ChatStow> chatStowsForCreator) {
		this.chatStowsForCreator = chatStowsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByOwner")
	public Set<Channel> getChannelsForOwner() {
		return this.channelsForOwner;
	}

	public void setChannelsForOwner(Set<Channel> channelsForOwner) {
		this.channelsForOwner = channelsForOwner;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<ChatAt> getChatAtsForUpdater() {
		return this.chatAtsForUpdater;
	}

	public void setChatAtsForUpdater(Set<ChatAt> chatAtsForUpdater) {
		this.chatAtsForUpdater = chatAtsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByChatTo")
	public Set<ChatDirect> getChatDirectsForChatTo() {
		return this.chatDirectsForChatTo;
	}

	public void setChatDirectsForChatTo(Set<ChatDirect> chatDirectsForChatTo) {
		this.chatDirectsForChatTo = chatDirectsForChatTo;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<Space> getSpacesForUpdater() {
		return this.spacesForUpdater;
	}

	public void setSpacesForUpdater(Set<Space> spacesForUpdater) {
		this.spacesForUpdater = spacesForUpdater;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "member_channel_group", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "channel_group_id", nullable = false, updatable = false) })
	public Set<ChannelGroup> getChannelGroups() {
		return this.channelGroups;
	}

	public void setChannelGroups(Set<ChannelGroup> channelGroups) {
		this.channelGroups = channelGroups;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "users")
	public Set<ChatChannelFollower> getChatChannelFollowers() {
		return this.chatChannelFollowers;
	}

	public void setChatChannelFollowers(Set<ChatChannelFollower> chatChannelFollowers) {
		this.chatChannelFollowers = chatChannelFollowers;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUser")
	public Set<BlogAuthority> getBlogAuthoritiesForUser() {
		return this.blogAuthoritiesForUser;
	}

	public void setBlogAuthoritiesForUser(Set<BlogAuthority> blogAuthoritiesForUser) {
		this.blogAuthoritiesForUser = blogAuthoritiesForUser;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<Tag> getTagsForUpdater() {
		return this.tagsForUpdater;
	}

	public void setTagsForUpdater(Set<Tag> tagsForUpdater) {
		this.tagsForUpdater = tagsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByBlogUpdater")
	public Set<BlogHistory> getBlogHistoriesForBlogUpdater() {
		return this.blogHistoriesForBlogUpdater;
	}

	public void setBlogHistoriesForBlogUpdater(Set<BlogHistory> blogHistoriesForBlogUpdater) {
		this.blogHistoriesForBlogUpdater = blogHistoriesForBlogUpdater;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "user_project", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "project_id", nullable = false, updatable = false) })
	public Set<Project> getProjects() {
		return this.projects;
	}

	public void setProjects(Set<Project> projects) {
		this.projects = projects;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<BlogFollower> getBlogFollowersForUpdater() {
		return this.blogFollowersForUpdater;
	}

	public void setBlogFollowersForUpdater(Set<BlogFollower> blogFollowersForUpdater) {
		this.blogFollowersForUpdater = blogFollowersForUpdater;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "watcher_project", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "project_id", nullable = false, updatable = false) })
	public Set<Project> getProjects_1() {
		return this.projects_1;
	}

	public void setProjects_1(Set<Project> projects_1) {
		this.projects_1 = projects_1;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<Chat> getChatsForCreator() {
		return this.chatsForCreator;
	}

	public void setChatsForCreator(Set<Chat> chatsForCreator) {
		this.chatsForCreator = chatsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<Blog> getBlogsForUpdater() {
		return this.blogsForUpdater;
	}

	public void setBlogsForUpdater(Set<Blog> blogsForUpdater) {
		this.blogsForUpdater = blogsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<Comment> getCommentsForCreator() {
		return this.commentsForCreator;
	}

	public void setCommentsForCreator(Set<Comment> commentsForCreator) {
		this.commentsForCreator = commentsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<Schedule> getSchedulesForCreator() {
		return this.schedulesForCreator;
	}

	public void setSchedulesForCreator(Set<Schedule> schedulesForCreator) {
		this.schedulesForCreator = schedulesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<Setting> getSettingsForCreator() {
		return this.settingsForCreator;
	}

	public void setSettingsForCreator(Set<Setting> settingsForCreator) {
		this.settingsForCreator = settingsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<Blog> getBlogsForCreator() {
		return this.blogsForCreator;
	}

	public void setBlogsForCreator(Set<Blog> blogsForCreator) {
		this.blogsForCreator = blogsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<SpaceAuthority> getSpaceAuthoritiesForCreator() {
		return this.spaceAuthoritiesForCreator;
	}

	public void setSpaceAuthoritiesForCreator(Set<SpaceAuthority> spaceAuthoritiesForCreator) {
		this.spaceAuthoritiesForCreator = spaceAuthoritiesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByStowUser")
	public Set<ChatStow> getChatStowsForStowUser() {
		return this.chatStowsForStowUser;
	}

	public void setChatStowsForStowUser(Set<ChatStow> chatStowsForStowUser) {
		this.chatStowsForStowUser = chatStowsForStowUser;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "member_channel", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "channel_id", nullable = false, updatable = false) })
	public Set<Channel> getChannels() {
		return this.channels;
	}

	public void setChannels(Set<Channel> channels) {
		this.channels = channels;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "subscriber_channel", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "channel_id", nullable = false, updatable = false) })
	public Set<Channel> getChannels_1() {
		return this.channels_1;
	}

	public void setChannels_1(Set<Channel> channels_1) {
		this.channels_1 = channels_1;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<Todo> getTodosForUpdater() {
		return this.todosForUpdater;
	}

	public void setTodosForUpdater(Set<Todo> todosForUpdater) {
		this.todosForUpdater = todosForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<ChatDirect> getChatDirectsForCreator() {
		return this.chatDirectsForCreator;
	}

	public void setChatDirectsForCreator(Set<ChatDirect> chatDirectsForCreator) {
		this.chatDirectsForCreator = chatDirectsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<ChatStow> getChatStowsForUpdater() {
		return this.chatStowsForUpdater;
	}

	public void setChatStowsForUpdater(Set<ChatStow> chatStowsForUpdater) {
		this.chatStowsForUpdater = chatStowsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<SpaceAuthority> getSpaceAuthoritiesForUpdater() {
		return this.spaceAuthoritiesForUpdater;
	}

	public void setSpaceAuthoritiesForUpdater(Set<SpaceAuthority> spaceAuthoritiesForUpdater) {
		this.spaceAuthoritiesForUpdater = spaceAuthoritiesForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<ChatAt> getChatAtsForCreator() {
		return this.chatAtsForCreator;
	}

	public void setChatAtsForCreator(Set<ChatAt> chatAtsForCreator) {
		this.chatAtsForCreator = chatAtsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<ChatReply> getChatRepliesForCreator() {
		return this.chatRepliesForCreator;
	}

	public void setChatRepliesForCreator(Set<ChatReply> chatRepliesForCreator) {
		this.chatRepliesForCreator = chatRepliesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<Setting> getSettingsForUpdater() {
		return this.settingsForUpdater;
	}

	public void setSettingsForUpdater(Set<Setting> settingsForUpdater) {
		this.settingsForUpdater = settingsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<BlogHistory> getBlogHistoriesForUpdater() {
		return this.blogHistoriesForUpdater;
	}

	public void setBlogHistoriesForUpdater(Set<BlogHistory> blogHistoriesForUpdater) {
		this.blogHistoriesForUpdater = blogHistoriesForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<Space> getSpacesForCreator() {
		return this.spacesForCreator;
	}

	public void setSpacesForCreator(Set<Space> spacesForCreator) {
		this.spacesForCreator = spacesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "users")
	public Set<Authorities> getAuthoritieses() {
		return this.authoritieses;
	}

	public void setAuthoritieses(Set<Authorities> authoritieses) {
		this.authoritieses = authoritieses;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<BlogHistory> getBlogHistoriesForCreator() {
		return this.blogHistoriesForCreator;
	}

	public void setBlogHistoriesForCreator(Set<BlogHistory> blogHistoriesForCreator) {
		this.blogHistoriesForCreator = blogHistoriesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<Channel> getChannelsForCreator() {
		return this.channelsForCreator;
	}

	public void setChannelsForCreator(Set<Channel> channelsForCreator) {
		this.channelsForCreator = channelsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "users")
	public Set<ChatPin> getChatPins() {
		return this.chatPins;
	}

	public void setChatPins(Set<ChatPin> chatPins) {
		this.chatPins = chatPins;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<BlogAuthority> getBlogAuthoritiesForCreator() {
		return this.blogAuthoritiesForCreator;
	}

	public void setBlogAuthoritiesForCreator(Set<BlogAuthority> blogAuthoritiesForCreator) {
		this.blogAuthoritiesForCreator = blogAuthoritiesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<ChatReply> getChatRepliesForUpdater() {
		return this.chatRepliesForUpdater;
	}

	public void setChatRepliesForUpdater(Set<ChatReply> chatRepliesForUpdater) {
		this.chatRepliesForUpdater = chatRepliesForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<Comment> getCommentsForUpdater() {
		return this.commentsForUpdater;
	}

	public void setCommentsForUpdater(Set<Comment> commentsForUpdater) {
		this.commentsForUpdater = commentsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByAtUser")
	public Set<ChatAt> getChatAtsForAtUser() {
		return this.chatAtsForAtUser;
	}

	public void setChatAtsForAtUser(Set<ChatAt> chatAtsForAtUser) {
		this.chatAtsForAtUser = chatAtsForAtUser;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "actor_schedule", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "schedule_id", nullable = false, updatable = false) })
	public Set<Schedule> getSchedules() {
		return this.schedules;
	}

	public void setSchedules(Set<Schedule> schedules) {
		this.schedules = schedules;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUser")
	public Set<SpaceAuthority> getSpaceAuthoritiesForUser() {
		return this.spaceAuthoritiesForUser;
	}

	public void setSpaceAuthoritiesForUser(Set<SpaceAuthority> spaceAuthoritiesForUser) {
		this.spaceAuthoritiesForUser = spaceAuthoritiesForUser;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<ChatChannel> getChatChannelsForCreator() {
		return this.chatChannelsForCreator;
	}

	public void setChatChannelsForCreator(Set<ChatChannel> chatChannelsForCreator) {
		this.chatChannelsForCreator = chatChannelsForCreator;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "voter_chat", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "chat_id", nullable = false, updatable = false) })
	public Set<Chat> getChats() {
		return this.chats;
	}

	public void setChats(Set<Chat> chats) {
		this.chats = chats;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set<BlogFollower> getBlogFollowersForCreator() {
		return this.blogFollowersForCreator;
	}

	public void setBlogFollowersForCreator(Set<BlogFollower> blogFollowersForCreator) {
		this.blogFollowersForCreator = blogFollowersForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<ChatDirect> getChatDirectsForUpdater() {
		return this.chatDirectsForUpdater;
	}

	public void setChatDirectsForUpdater(Set<ChatDirect> chatDirectsForUpdater) {
		this.chatDirectsForUpdater = chatDirectsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<Channel> getChannelsForUpdater() {
		return this.channelsForUpdater;
	}

	public void setChannelsForUpdater(Set<Channel> channelsForUpdater) {
		this.channelsForUpdater = channelsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set<ChatChannel> getChatChannelsForUpdater() {
		return this.chatChannelsForUpdater;
	}

	public void setChatChannelsForUpdater(Set<ChatChannel> chatChannelsForUpdater) {
		this.chatChannelsForUpdater = chatChannelsForUpdater;
	}

}
